---@class Battle.BuffCarryMarkCondition:Battle.IBuffCondition
local t = Battle.CreateClass("BuffCarryMarkCondition",Battle.IBuffCondition)
Battle.BuffCarryMarkCondition = t

function t:ctor(buff,mark)
    ---@type Battle.Buffer
    self.buff = buff
    self.mark = mark
end

function t:Check()
    local buffList = Battle.BufferMgr.GetBuffList(self.buff.targetId)
    for k,v in pairs(buffList) do
        if v:HasSign(self.mark) then
            return true
        end
    end
    return false
end